package com.ruoyi.mapper;

import com.ruoyi.entity.po.TPlayerIntroduce;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * @author chenhainan
 * @since 2024-12-09 20:38
 */
@Mapper
public interface TPlayerIntroduceMapper {
    int deleteByPrimaryKey(@Param("id") Integer id);

    int insert(@Param("record") TPlayerIntroduce record);

    int insertSelective(@Param("record") TPlayerIntroduce record);

    TPlayerIntroduce selectByPrimaryKey(@Param("id") Integer id);

    int updateByPrimaryKeySelective(@Param("record") TPlayerIntroduce record);

    int updateByPrimaryKey(@Param("record") TPlayerIntroduce record);

    List<TPlayerIntroduce> selectPlayerIntroduceList(@Param("playerIntroduce") TPlayerIntroduce playerIntroduce);

    int insertPlayerIntroduce(@Param("playerIntroduce") TPlayerIntroduce playerIntroduce);

    int deletePlayerIntroduceById(@Param("id") Integer id);

    int deletePlayerIntroduceByIds(@Param("ids") Integer[] ids);

    int updatePlayerIntroduce(@Param("playerIntroduce") TPlayerIntroduce playerIntroduce);

    @Select("select * from t_player_introduce where player_id = #{playerId} ")
    TPlayerIntroduce selectByPlayerId(@Param("playerId") Integer playerId);
}